package iechecs.type;

import java.util.ArrayList;
import java.util.List;

public  class AListe<T> {

    private List<T> instance;
    private int size;

    public List<T> getInstance() {
        return instance;
    }

    public AListe(int size) {
        this.size = size;
        instance = new ArrayList<T>(size);
    }

    public AListe() {
        instance = new ArrayList<T>();

    }

    public T get(int index) {
        return instance.get(index);
    }

    public void add(int index, T element) {
        instance.add(index, element);
    }

    public void add(T e) {
        instance.add(e);
    }
}
